<?php
/**
 * @var $this Pinenut\Action
 * @var $messagesCount int
 */

$hiddenClass = $messagesCount > 0 ? '' : 'hidden';
?>
<span class="button-unseen-messages-count <?php echo $hiddenClass; ?>">&nbsp;
	<?php if ($messagesCount > 0) : ?>
		<span class="new-count">
			+<?php echo $messagesCount; ?>
		</span>
	<?php endif; ?>&nbsp;
</span>